const constant = {
	// serverUrl: "http://47.106.224.106:8083/QLH-Vue-Api/",
	serverUrl: "http://127.0.0.1:8083/QLH-Vue-Api/",
	cacheskey: {
		jwttoken: "jwttoken",
		user: "user",
		menus: "menus",
		codes: "codes",
		roleChildren: "roleChildren",
		departmentChildren: "departmentChildren",
		tabs: "tabs",
		currentTabId: "currentTabId",
		skin: "skin"
	},
	msg: {
		icon: {
			success: 1,
			fail: 2,
			info: 8,
			exception: 5
		}
	},
	response: {
		code: {
			success: 1000,
			fail: 1001,
			exception: 1002,
			nologin: 1003,
			noauth: 1004,
			badtoken: 1005,
			flusntoken: 1006,
		}
	},
	page: {
		pageSizes: [1, 5, 10, 15, 20, 25, 50, 100, 500, 10000],
		layout: "total, sizes, prev, pager, next, jumper",
	},
	responseObj: function() {
		this.code = null;
		this.msg = null;
		this.data = null;
	},
	requestObj: function() {
		this.data = {};
		this.page = {
			size: 10,
			current: 1
		};
		this.param = {};
	}
}
export default constant;
